@import '../lib/layui/css/layui.css';
@import './variable.less';
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    font-family: "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", "WenQuanYi Micro Hei";
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    margin: 0;
     line-height: 1;
    -webkit-font-smoothing: antialiased;
}
.clearfix {
    &:after {
        content: '';
        display: block;
        clear: both;
    }
}

.search-section {
    position: absolute;
    right: 0;
    top: 50%;
    z-index: 60;
    transform: translate(0, -50%);
    padding: 16px 0;
    // border-bottom: 1px solid #ddd;
    .search-box {
        float: right;
        height: 38px;
    }
    .search-input-wrap {
        .col();
        border: 1px solid #eaeaea;
        box-sizing: border-box;
        border-right: 0;
    }
    .search-type-select {
        .col();
        vertical-align: middle;
        position: relative;
        height: 36px;
        padding: 0 0px 0 10px;
        // margin-right: 8px;
        line-height: 36px;
        font-size: 14px;
        color: #333;
        cursor: default;
        &::after {
            content: '|';
            display: inline-block;
            margin-left: 8px;
            color: #eaeaea;
        }
        &:hover {
           .drop-down {
               display: block;
           } 
        }
        .drop-down {
            position: absolute;
            left: -1px;
            top: 100%;
            right: 0;
            display: none;
            background-color: #fff;
            text-align: center;
            border: solid 1px #eaeaea;
            border-top: 0;
            dd {
                &:hover {
                    background-color: #e4e4e4;
                }
            }
        }
    }
    .search-input {
        .col();
        vertical-align: middle;
        padding: 6px 10px;
        font-size: 12px;
        border: 0;
        border-right: 0;
        box-sizing: border-box;
        width: 400px;
        height: 100%;
        &::placeholder {
            color: #a9a9a9;
        }
    }
    .search-btn {
        .col();
        position: relative;
        width: 60px;
        height: 100%;
        border: 1px solid #eaeaea; 
        box-sizing: border-box;
        // background-color: @theme-color;
        // border-color: @theme-color;
        // background-image: url('../../image/icon_search.png');
        background-repeat: no-repeat;
        background-position: center center;
        cursor: pointer;
        &:hover {
            background-color: @theme-color;
            border-color: @theme-color;
            svg {
                fill: #fff;
            }
        }
    }
}

.bread-crumb {
    .item {
        display: inline-block;
        padding: 19px 0 15px;
        font-size: 14px;
        line-height: 1;
        vertical-align: middle;
        &::after {
            content: ">";
            display: inline-block;
            vertical-align: middle;
            margin: -5px 6px 0;
            font-size: 14px;
            line-height: 14px;
        }
        &:last-of-type {
            &::after {
                content: none;
            }
        }
    }
}

.layui-carousel {
    .layui-carousel-ind {
        ul {
            background-color: transparent;
            li {
                background-color: #fff;
                margin: 0 5px;
                &.layui-this {
                    background-color: @theme-color;
                }
            }
        }
    }

    &.mode-2 {
        .layui-carousel-ind {
            text-align: left;
            ul {
                margin-left: 12px;
            }
        }
    }

    &.mode-3 {
        .layui-carousel-ind {
            text-align: right;
            ul {
                margin-right: 12px;
            }
        }
    }

    .banner-item {
        background-position: center center;
        background-size: cover;
    }
}

.chj-modal {
    .layui-layer-title {
        font-size: 20px;
        color: #181b20;
        text-align: center;
        height: 60px;
        line-height: 60px;
        padding-right: 20px;
        background-color: transparent;
        border-bottom: 0;
    }
    .layui-layer-setwin {
        top: 20px;
    }

    .layui-layer-btn {
        padding-top: 6px;
        padding-bottom: 32px;
        .layui-layer-btn0 {
            border-color: @theme-color;
            background-color: @theme-color; 
            width: 230px;
            height: 42px;
            line-height: 42px;
            border-radius: 4px;
            box-sizing: border-box;
            font-size: 16px;
        }
    }

    .form-submit-btn {
        display: block;
        margin: 0 0 30px 190px;
        border-color: @theme-color;
        background-color: @theme-color; 
        width: 230px;
        height: 42px;
        line-height: 42px;
        border-radius: 4px;
        box-sizing: border-box;
        font-size: 16px; 
        color: #fff;
    }
}

.modal-templete {
    display: none;
}

.layui-form-select dl dd.layui-this {
    background-color: #e4e4e4;
}

.form-wrap {
    padding: 48px 0 0 0;
    margin-left: 44px;
    margin-right: 110px;
    border-top: 1px solid #ecf0f7;

    .layui-form-item {
        padding-right: 20px;
        margin-bottom: 26px;
    }

    .layui-form-label {
        width: 160px;
        padding-top: 8px;
        color: #181b20;
    }

    .layui-input {
        height: 36px;
        padding-left: 23px;
        border-color: #e9e9e9;
        &::placeholder {
            color: @font-gray-1;
        }
    }

    .layui-input-block {
        position: relative;
        margin-left: 190px;
    }

    .layui-textarea {
        resize: none;
        border-color: #e9e9e9;
        min-height: 80px;
        padding-left: 23px;
        &::placeholder {
            color: @font-gray-1;
        }       
    }

    .upload-select {
        position: absolute;
        top: 50%;
        right: 5px;
        font-size: 0px;
        color: @font-black-1;
        margin-top: -18px;
        padding-top: 5px;
        .btn {
            .col();
            padding: 6px 12px;
            font-size: 5px;
            background-color: @bg-gray-1;
            border-radius: 2px;
            cursor: pointer;
            &:hover {
                background-color: @bg-gray-1-hover; 
            }
        }
        .upload-preview {
            .col();
            display: none;
            margin-left: 5px;
        }
        .icon {
            display: inline-block;
            font-size: 12px;
            color: #666;
        }
    }

    .file-upload {
        position: relative;
        border: 1px solid #e9e9e9;
        transition: all .3s;
        &:hover {
            border-color: #D2D2D2;
        }
        .placeholder {
            position: absolute;
            left: 23px;
            top: 50%;
            margin-top: -8px;
            font-size: 16px;
            color: @font-gray-1; 
        }
        .value {
           position: absolute;
            left: 23px;
            top: 50%;
            margin-top: -8px;
            font-size: 16px;
        }
        input {
            opacity: 0;
        }
    }
}

.news-item {
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    &:hover {
        .right .content {
            color: lighten(#666, 10%);
        }
    }
    .left {
        display: inline-block;
        width: 27.5%;
        height: 240px;
        vertical-align: top;
        .image {
            width: 100%;
            height: 100%;
            background-position: center center;
            background-size: cover;
        }
    }
    .right {
        display: inline-block;
        padding-top: 14px;
        width: 72.5%;
        vertical-align: top;
        box-sizing: border-box;
        padding-left: 30px;
        .title {
            font-size: 22px;
            font-weight: bold;
            margin-bottom: 30px;
        }
        .content {
            .text-multi-overflow(3);
            height: 90px;
            font-size: 15px;
            line-height: 32px;
            color: #666;
            margin-bottom: 57px;
            img {
                display: none !important;
            }
            * {
                display: inline !important;
            }
        }
    }
    .news-item-footer {
        color:#a4a4a4;
        font-size: 12px;
        .pv {
            float: left;
        }
        .date {
            float: right;
        }
    }
}

@media screen and (min-width: 1200px) {
    .layui-container {
        width: 1200px;
        padding: 0;
    }
}
